<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/index.css">
    <script src="./js/tab.js"></script>
    <title>Document</title>

</head>

<body>
    <main>
        <h4>js面向对象动态添加标签页</h4>
        <div class="tabbox" id=tab>
            <!-- 导航栏部分 -->
            <nav class="firstnav">
                <ul>
                    <li class="liactive"><span>测试1</span></li>
                    <li><span>测试2</span></li>
                    <li><span>测试3</span></li>
                </ul>
                <div class="tabadd">
                    <span>+</span>
                </div>
            </nav>
            <!-- 内容部分 -->
            <div class="tabscn">
                <section class="conactive">测试1内容</section>
                <section></section>
                <section></section>
            </div>
        </div>
    </main>

</body>

</html>